package com.fsl.springbootdesignpattern.h_decorator;

/**
 * @author sj2
 * ConcreteDecorator具体装饰角色
 */
public class WaterCar extends SuperCar  {

    public WaterCar(ICar car) {
        super(car);
    }

    private void swim(){
        System.out.println("在水里游起来");
    }

    @Override
    public void move() {
        super.move();
        swim();
    }
}
